import com.xindong.paking.PakingSystemApplication;
import com.xindong.paking.entity.ConstantPropertiesUtil;
import com.xindong.paking.entity.ParkingLot;
import com.xindong.paking.mapper.ParkingLotMapper;
import com.xindong.paking.service.TbOrderService;
import com.xindong.paking.service.TbUserService;
import com.xindong.paking.utils.Result;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author jielun
 * @Date 2023/1/10 15:06
 * @Version 1.0
 */
@SpringBootTest(classes = PakingSystemApplication.class)
public class teset {
    @Resource
    private ConstantPropertiesUtil util;
    @Autowired
    private TbUserService tbUserService;
    @Autowired
    private TbOrderService orderService;

    @Resource
    private ParkingLotMapper parkingLotMapper;

    @Test
    public void test() {
        System.out.println(util.toString());
    }

    @Test
    public void test1(){
        List<ParkingLot> parkingLots = parkingLotMapper.selectList(null);
        System.out.println(parkingLots);
    }

    @Test
    public void tess() {
        Result list = tbUserService.list(0, 100);
        System.out.println(list);
    }

    @Test
    public void testOrderMoney() {
        Result orderMoney = orderService.getOrderMoney();
        System.out.println("订单金额为" + orderMoney);
    }
}
